#include "commonzomb.h"

commonzomb::commonzomb() {
    m_commonzomb.load(COMMONZOMB_PATH);
    m_X=GAME_WIDTH;
    m_Y=0;
    m_Free=true;
    m_speed=COMMONZOMB_SPEED;
    m_Rect.setWidth(m_commonzomb.width());
    m_Rect.setHeight(m_commonzomb.height());
    m_Rect.moveTo(m_X,m_Y);



}

void commonzomb::updatePosition()
{
    if(m_Free){
        return;
    }

    m_X-=m_speed;
    m_Rect.moveTo(m_X,m_Y);

}
